{% extends "../base_with_nav.html" %}
{% load admin_utils %}

{% block content_header %}
<ul class="paas-breadcrumb">
    <li><a href="{% url 'admin.front_page' %}">首页</a></li>
    <li><a href="{% url 'admin.platform.index' %}">平台管理</a></li>
    <li class="active">{{ view.name }}</li>
</ul>
{% endblock %}

{% block nav_list %}
<script>
    var navList = [
        {
            name: "应用列表",
            icon: 'icon-tree-module-shape',
            url: "{% url 'admin.applications.list' %}"
        },
        {
            name: "应用运营评估",
            icon: 'icon-tree-module-shape',
            url: "{% url 'admin.applications.operation_evaluation.list' %}"
        },
        {
            name: "部署概览",
            icon: 'icon-tree-module-shape',
            url: "{% url 'admin.deployments.list' %}"
        },
        {
            name: '增强服务管理',
            icon: 'icon-tree-module-shape',
            url: "{% url 'admin.services.manage' %}",
            children: [
                {
                    name: '服务管理',
                    url: '{% url "admin.services.manage" %}'
                },
                {
                    name: '方案管理',
                    url: '{% url "admin.plans.manage" %}'
                },
                {
                    name: '资源池管理',
                    url: '{% url "admin.pre_created_instances.manage" %}'
                }
            ]
        },
        {
            name: '运行时管理',
            icon: 'icon-tree-module-shape',
            url: "{% url 'admin.buildpack.list' %}",
            children: [
                {
                    name: 'BuildPack管理',
                    url: '{% url "admin.runtime.buildpack.manage" %}'
                },
                {
                    name: 'SlugBuilder管理',
                    url: '{% url "admin.runtime.slugbuilder.manage" %}'
                },
                {
                    name: 'SlugRunner管理',
                    url: '{% url "admin.runtime.slugrunner.manage" %}'
                },
            ]
        },
        {
            name: '智能顾问',
            icon: 'icon-tree-module-shape',
            url: "{% url 'admin.services.manage' %}",
            children: [
                {
                    name: '文档管理',
                    url: '{% url "admin.smart_advisor.documents.manage" %}'
                },
                {
                    name: '失败提示管理',
                    url: '{% url "admin.smart_advisor.deploy_failure_tips.manage" %}'
                }
            ]
        },
        {
            name: '应用资源方案',
            icon: 'icon-tree-module-shape',
            url: "{% url 'admin.process_spec_plan.manage' %}"
        },
        {
            name: '应用集群',
            icon: 'icon-tree-module-shape',
            children: [
                {
                    name: '集群管理',
                    url: "{% url 'admin.clusters.manage' %}"
                },
                {
                    name: "集群组件",
                    url: "{% url 'admin.cluster_components.manage' %}"
                },
                {
                    name: "PaaS Operator",
                    url: "{% url 'admin.operators.manage' %}"
                },
            ]
        },
        {
            name: '共享证书管理',
            icon: 'icon-tree-module-shape',
            url: "{% url 'admin.shared.certs.manage' %}"
        },
        {
            name: "代码库配置",
            icon: 'icon-tree-module-shape',
            url: "{% url 'admin.sourcectl.source_type_spec.manage' %}"
        }
    ]
</script>
{% endblock %}
